package com.xbaoziplus.simple_spring.beans.factory.support;

import com.xbaoziplus.simple_spring.beans.BeansException;
import com.xbaoziplus.simple_spring.core.io.Resource;
import com.xbaoziplus.simple_spring.core.io.ResourceLoader;

/**
 * @author xbaozi
 * @version 1.0
 * @interfacename BeanDefinitionReader
 * @date 2023-05-07  13:55
 * @description 用于读取Bean对象定义
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

}
